<!DOCTYPE HTML>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico">
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <!--[if lt IE 9]>
<script type="text/javascript" src="/admin/lib/html5shiv.js"></script>
<script type="text/javascript" src="/admin/lib/respond.min.js"></script>
<![endif]-->
    <link rel="stylesheet" type="text/css" href="/admin/static/h-ui/css/H-ui.css" />
    <link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/admin/lib/Hui-iconfont/Ali-iconfont/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
<script type="text/javascript" src="/admin/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
    <title>安全工器具检测管理系统</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <style>
        #logotext{
            cursor: default;
        }
        .Hui-aside ul {
            background-color: #fff;
        }
        .Hui-aside dt:hover {
            color: #000!important;
            /* font-weight:bold; */
            font-size: 15px;
        }
        /* .Hui-article {
            top: 0px;
        } */
        .icon-fullscreen,.icon-fullscreen-exit{
            font-size: 30px!important;
            margin-left: 15px;
            cursor: pointer;
        }
        #Hui-userbar { 
            right: 7px;
        }
        @media (min-width: 767px){
            .Hui-article {
                top: 0px;
            }
        }
        .Hui-aside .menu_dropdown dl:last-child dd{
            border-bottom:40px solid #eee!important;
        }
        .Hui-aside .menu_dropdown dl dd ul li.active a{
            border-left: 5px solid #5a98de;
            padding-left: 21px;
            /* border-right: 1px solid #19aa8d;
            border-top: 1px solid #19aa8d;
            border-bottom: 1px solid #19aa8d; */
            background: #F5FAFE;
        }
        .Hui-aside .menu_dropdown dl dd ul li a:hover{
            border-left: 5px solid #BCD8F2;
            padding-left: 21px;
            background: #F5FAFE;
        }
    </style>
</head>

<body>
    <header class="navbar-wrapper">
        <div class="navbar navbar-fixed-top">
            <div class="container-fluid cl">
                <span class="logo navbar-logo f-l mr-10 hidden-xs" id="logotext">安全工器具检测管理系统</span> <a class="logo navbar-logo-m f-l mr-10 visible-xs"
                    href="javascript:void(0)">安全工器具检测管理系统</a>
                <span class="logo navbar-slogan f-l mr-10 hidden-xs">v1.0</span>
                <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
                {{-- <nav class="nav navbar-nav">
                    <ul class="cl">
                        <li class="dropDown dropDown_hover"><a href="javascript:;" class="dropDown_A"><i class="Hui-iconfont">&#xe600;</i> 新增 <i class="Hui-iconfont">&#xe6d5;</i></a>
                            <ul class="dropDown-menu menu radius box-shadow">
                                <li><a href="javascript:;" onclick="article_add('添加资讯','article-add.html')"><i class="Hui-iconfont">&#xe616;</i> 资讯</a></li>
                                <li><a href="javascript:;" onclick="picture_add('添加资讯','picture-add.html')"><i class="Hui-iconfont">&#xe613;</i> 图片</a></li>
                                <li><a href="javascript:;" onclick="product_add('添加资讯','product-add.html')"><i class="Hui-iconfont">&#xe620;</i> 产品</a></li>
                                <li><a href="javascript:;" onclick="member_add('添加用户','member-add.html','','510')"><i class="Hui-iconfont">&#xe60d;</i> 用户</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav> --}}
                <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                    <ul class="cl">
                        <li class="dropDown dropDown_hover">
                            <a href="javascript:void(0)" class="dropDown_A"><i class="Hui-iconfont">&#xe62d;</i>&nbsp;&nbsp;<span id="username">{{ auth('admin')->user()->username }}</span> <i class="Hui-iconfont">&#xe6d5;</i></a>
                            <ul class="dropDown-menu menu radius box-shadow">
                                <li><a href="javascript:;" onClick="myselfinfo('编辑个人信息','/admin/manager/editself','','570')">个人信息</a></li>
                                <li><a href="javascript:;" onClick="myselfinfo('修改密码','/admin/manager/editpassself','260','370')">修改密码</a></li>
                                <li><a href="/admin/public/logout">退出</a></li>
                            </ul>
                        </li>
                        <li>
                            @if (auth('admin')->user()->role)
                            【{{ auth('admin')->user()->role->role_name }}】
                            @else
                            【无角色】
                            @endif
                        </li>
                        <li class="iconfont icon-fullscreen" title="全屏"></li>
                        <li class="iconfont icon-fullscreen-exit" title="退出全屏" style="display:none"></li>
                        {{-- <li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe622;</i></a>                            </li> --}}
                        {{-- <li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
                            <ul class="dropDown-menu menu radius box-shadow">
                                <li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
                                <li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
                                <li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
                                <li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
                                <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
                                <li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
                            </ul>
                        </li> --}}
                    </ul>
                </nav>
            </div>
        </div>
    </header>
    <aside class="Hui-aside">
        <div class="menu_dropdown bk_2">
            @foreach ($auth_A as $v)
                <dl>
                    <dt>
                        <i class="Hui-iconfont Hui-iconfont-fenlei"></i> {{ $v->auth_name }}<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
                    </dt>
                    <dd>
                        <ul>
                            @foreach ($auth_B as $vv)
                                @if ($vv->pid==$v->id)
                                    <li><a href="javascript:;" onclick="iframe_src('{{asset($vv->url)}}');">{{ $vv->auth_name }}</a></li>
                                @endif
                            @endforeach
                        </ul>
                    </dd>
                </dl>
            @endforeach
            {{-- <dl>
                <dt>
                    <i class="Hui-iconfont">&#xe616;</i> 检测业务<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
                </dt>
                <dd>
                    <ul>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/contract/addShow');">新建批次</a></li>
                        {{ -- <li><a href="javascript:;" onclick="iframe_src('/admin/contract/index');">批次列表</a></li> -- }}
                        <li><a href="javascript:;" onclick="iframe_src('/admin/contract/indexAll');">批次查看</a></li>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/contract/indexInfoLuru');">信息录入</a></li>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/contract/indexPrintBarCode');">打印条形码</a></li>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/contract/indexAssignTask');">任务分配</a></li>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/contract/indexResLuru');">结果录入</a></li>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/contract/indexCheck');">审核报告</a></li>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/contract/indexApprove');">批准报告</a></li>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/contract/indexDownloadReport');">下载报告</a></li>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/contract/indexPrintPassedCard');">打印合格证</a></li>
                    </ul>
                </dd>
            </dl> --}}
            {{-- <dl>
                <dt><i class="Hui-iconfont">&#xe613;</i> 基础信息<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
                <dd>
                    <ul>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/client/index');">客户信息</a></li>
                    </ul>
                </dd>
            </dl>
            <dl id="menu-admin">
                <dt><i class="Hui-iconfont">&#xe62d;</i> 管理员管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
                <dd>
                    <ul>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/role/index');">角色查看</a></li>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/auth/index');">权限查看</a></li>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/manager/index');">管理员查看</a></li>
                    </ul>
                </dd>
            </dl>
            <dl id="menu-system">
                <dt><i class="Hui-iconfont">&#xe62e;</i> 系统管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
                <dd>
                    <ul>
                        <li><a href="javascript:;" onclick="iframe_src('/admin/sampleBasicInfo/index');">标准展示</a></li>
                        <li><a href="http://www.h-ui.net/Hui-overview.shtml" target="_blank">Hui框架官网</a></li>
                    </ul>
                </dd>
            </dl> --}}
        </div>
    </aside>
    <div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
    <section class="Hui-article-box">
        {{-- <div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
            <div class="Hui-tabNav-wp">
                <ul id="min_title_list" class="acrossTab cl">
                    <li class="active">
                        <span title="首页" data-href="/admin/index/welcome">首页</span>
                        <em></em></li>
                </ul>
            </div>
            <div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a>
                <a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a>
            </div>
        </div> --}}
        <div id="iframe_box" class="Hui-article">
            <div class="show_iframe">
                <div  class="loading" id="loading"></div>
                <iframe scrolling="yes" style="display:none" frameborder="0" src="/admin/index/welcome" id="myiframe"></iframe>
            </div>
        </div>
    </section>

    <div class="contextMenu" id="Huiadminmenu">
        <ul>
            <li id="closethis">关闭当前 </li>
            <li id="closeall">关闭全部 </li>
        </ul>
    </div>
    <!--_footer 作为公共模版分离出去-->
    <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
    {{-- <script type="text/javascript" src="/admin/lib/layer/3.1.1/layer.js"></script> --}}
    <script type="text/javascript" src="/admin/lib/layer/3.1.1/layer.js"></script>
    <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
    <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
    <!--/_footer 作为公共模版分离出去-->

    <!--请在下方写此页面业务相关的脚本-->
    <script type="text/javascript" src="/admin/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
    <script type="text/javascript">
$(function(){
    //点击栏目后，左边加条竖线标志
    $(".Hui-aside .menu_dropdown dl dd ul li").click(function(){
        $(".Hui-aside .menu_dropdown dl dd ul li").removeClass("active");
        $(this).addClass("active");
    });

    $(".Hui-aside .menu_dropdown dl:first dd").slideDown(0);//默认让第一个栏目展开
    $(".icon-fullscreen").click(function(){
        fullScreen();
        $(this).hide();
        $(".icon-fullscreen-exit").show();
    });  

    $(".icon-fullscreen-exit").click(function(){
        exitFullScreen();
        $(this).hide();
        $(".icon-fullscreen").show();
    });  
    
    //注册iframe加载完成后的事件
    $("#myiframe").on('load',function(){
        $('#loading').hide();
        $(this).show();
    });
	/*$("#min_title_list li").contextMenu('Huiadminmenu', {
		bindings: {
			'closethis': function(t) {
				console.log(t);
				if(t.find("i")){
					t.find("i").trigger("click");
				}		
			},
			'closeall': function(t) {
				alert('Trigger was '+t.id+'\nAction was Email');
			},
		}
	});*/
});

/*
    * 浏览器全屏
    */
function fullScreen() {
    var el = document.documentElement;
    var rfs = el.requestFullScreen || el.webkitRequestFullScreen;
    if (typeof rfs != "undefined" && rfs) {
        rfs.call(el);
    } else if (typeof window.ActiveXObject != "undefined") {
        var wscript = new ActiveXObject("WScript.Shell");
        if (wscript != null) {
            wscript.SendKeys("{F11}");
        }
    } else if (el.msRequestFullscreen) {
        el.msRequestFullscreen();
    } else if (el.oRequestFullscreen) {
        el.oRequestFullscreen();
    } else {
        //360 的IE兼容模式、FireFox不支持
        layer.msg('您的浏览器不支持此功能，请按【F11】全屏',{time:2000});
    }
}

/*
    * 浏览器退出全屏
    */
function exitFullScreen() {
    var el = document;
    var cfs = el.cancelFullScreen || el.webkitCancelFullScreen || el.exitFullScreen;
    if (typeof cfs != "undefined" && cfs) {
        cfs.call(el);
    } else if (typeof window.ActiveXObject != "undefined") {
        var wscript = new ActiveXObject("WScript.Shell");
        if (wscript != null) {
            wscript.SendKeys("{F11}");
        }
    } else if (el.msExitFullscreen) {
        el.msExitFullscreen();
    } else if (el.oRequestFullscreen) {
        el.oCancelFullScreen();
    } else {
        //360 的IE兼容模式、FireFox不支持
        layer.msg('您的浏览器不支持此功能，请按【F11】退出全屏',{time:2000});
    }
}

/*个人信息*/
function myselfinfo(title,url,w,h){
    layer_show(title,url,w,h);
}
/*更新顶部的用户名*/
function update_username(name){
    $('#username').text(name);
}

function iframe_src(str_src){
    $('#myiframe').hide();
    $('#loading').show();
    document.getElementById('myiframe').src=str_src;
    //  $('#myiframe').attr('src',str_src);

}



    </script>


</body>

</html>